﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using Utilities.Validation.ExtensionMethods;
namespace Home.Domain.Entities.Secondary.Validation
{
    public class TPCCategoryValidator<TTPCCategory> : AbstractValidator<TTPCCategory> where TTPCCategory : TPCCategory 
    {
        public TPCCategoryValidator()
        {
            RuleFor(u => u.Title)
              .NotEmpty().WithLocalizedName(() => "标题").Length(0,32);
        }
    }
}
